package com.qing.apple.filter.demo02.predicate;

import com.qing.apple.filter.bean.Apple;

/**
 * 仅仅筛选>150g的苹果
 */
public class AppleHeavyWeightPredicate implements ApplePredicate{
	@Override
	public boolean test(Apple apple) {
		return apple.getWeight()>150;
	}
}
